module.exports = function ($scope, $state, $resource, $modal, toaster, $stateParams ){
    
    $scope.search = function (pageNo){
        var para = {
            'pageNo': pageNo || $scope.currentPage,
            'pageSize': $scope.itemsPerPage,
            'change_type': $stateParams.type
        }
        $resource('/api/ac/goc/counselingService/findprobabilityList', {}, {}).save(para, function(res){
            if(res.errcode === 0){
                $scope.list = res.data;
            }else{
                toaster.error({title: '', body: res.errmsg});
            }
        });
    }


   


    init();
    //初始化列表
    function init(){
        $scope.type = $stateParams.type;
        $scope.searchform = {};
        $scope.search(1);
    }

     
    

};